<?php

namespace App;

use Illuminate\Foundation\Auth\Type as Authenticatable;
use Illuminate\Database\Eloquent\Model;
use DB;
class Goods extends Model
{
	public $table='goods';
	public function getAddGoods($data){
    	return DB::table('goods')->insertGetId($data);
    }
    public function getAll(){
    	return self::where('is_delete',0)->paginate(5);
    }
}